<HTML>
<HEAD>
<meta charset="UTF-8">
<title>CharactersListViewModel - features/characters_list</title>
<link rel="stylesheet" href="../../../../style.css">
</HEAD>
<BODY>
<a href="../../index.html">features/characters_list</a>&nbsp;/&nbsp;<a href="../index.html">com.vmadalin.dynamicfeatures.characterslist.ui.list</a>&nbsp;/&nbsp;<a href="./index.html">CharactersListViewModel</a><br/>
<br/>
<h1>CharactersListViewModel</h1>
<code><span class="keyword">class </span><span class="identifier">CharactersListViewModel</span>&nbsp;<span class="symbol">:</span>&nbsp;<span class="identifier">ViewModel</span></code>
<p>View model responsible for preparing and managing the data for <a href="../-characters-list-fragment/index.html">CharactersListFragment</a>.</p>
<p><strong>See Also</strong><br/>
<p><a href="#">ViewModel</a></p>
</p>
<h3>Constructors</h3>
<table>
<tbody>
<tr>
<td>
<h4><a href="-init-.html">&lt;init&gt;</a></h4>
</td>
<td>
<p>View model responsible for preparing and managing the data for <a href="../-characters-list-fragment/index.html">CharactersListFragment</a>.</p>
<code><span class="identifier">CharactersListViewModel</span><span class="symbol">(</span><span class="identifier" id="com.vmadalin.dynamicfeatures.characterslist.ui.list.CharactersListViewModel$<init>(com.vmadalin.dynamicfeatures.characterslist.ui.list.paging.CharactersPageDataSourceFactory)/dataSourceFactory">dataSourceFactory</span><span class="symbol">:</span>&nbsp;<a href="../../com.vmadalin.dynamicfeatures.characterslist.ui.list.paging/-characters-page-data-source-factory/index.html"><span class="identifier">CharactersPageDataSourceFactory</span></a><span class="symbol">)</span></code></td>
</tr>
</tbody>
</table>
<h3>Properties</h3>
<table>
<tbody>
<tr>
<td>
<h4><a href="data.html">data</a></h4>
</td>
<td>
<code><span class="keyword">val </span><span class="identifier">data</span><span class="symbol">: </span><span class="identifier">LiveData</span><span class="symbol">&lt;</span><span class="identifier">PagedList</span><span class="symbol">&lt;</span><a href="../../com.vmadalin.dynamicfeatures.characterslist.ui.list.model/-character-item/index.html"><span class="identifier">CharacterItem</span></a><span class="symbol">!</span><span class="symbol">&gt;</span><span class="symbol">!</span><span class="symbol">&gt;</span></code></td>
</tr>
<tr>
<td>
<h4><a href="data-source-factory.html">dataSourceFactory</a></h4>
</td>
<td>
<code><span class="keyword">val </span><span class="identifier">dataSourceFactory</span><span class="symbol">: </span><a href="../../com.vmadalin.dynamicfeatures.characterslist.ui.list.paging/-characters-page-data-source-factory/index.html"><span class="identifier">CharactersPageDataSourceFactory</span></a></code></td>
</tr>
<tr>
<td>
<h4><a href="event.html">event</a></h4>
</td>
<td>
<code><span class="keyword">val </span><span class="identifier">event</span><span class="symbol">: </span><span class="identifier">SingleLiveData</span><span class="symbol">&lt;</span><a href="../-characters-list-view-event/index.html"><span class="identifier">CharactersListViewEvent</span></a><span class="symbol">&gt;</span></code></td>
</tr>
<tr>
<td>
<h4><a href="network-state.html">networkState</a></h4>
</td>
<td>
<code><span class="keyword">val </span><span class="identifier">networkState</span><span class="symbol">: </span><span class="identifier">LiveData</span><span class="symbol">&lt;</span><span class="identifier">NetworkState</span><span class="symbol">!</span><span class="symbol">&gt;</span></code></td>
</tr>
<tr>
<td>
<h4><a href="state.html">state</a></h4>
</td>
<td>
<code><span class="keyword">val </span><span class="identifier">state</span><span class="symbol">: </span><span class="identifier">LiveData</span><span class="symbol">&lt;</span><a href="../-characters-list-view-state/index.html"><span class="identifier">CharactersListViewState</span></a><span class="symbol">!</span><span class="symbol">&gt;</span></code></td>
</tr>
</tbody>
</table>
<h3>Functions</h3>
<table>
<tbody>
<tr>
<td>
<h4><a href="open-character-detail.html">openCharacterDetail</a></h4>
</td>
<td>
<p>Send interaction event for open character detail view from selected character.</p>
<code><span class="keyword">fun </span><span class="identifier">openCharacterDetail</span><span class="symbol">(</span><span class="identifier" id="com.vmadalin.dynamicfeatures.characterslist.ui.list.CharactersListViewModel$openCharacterDetail(kotlin.Long)/characterId">characterId</span><span class="symbol">:</span>&nbsp;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html"><span class="identifier">Long</span></a><span class="symbol">)</span><span class="symbol">: </span><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html"><span class="identifier">Unit</span></a></code></td>
</tr>
<tr>
<td>
<h4><a href="refresh-loaded-characters-list.html">refreshLoadedCharactersList</a></h4>
</td>
<td>
<p>Refresh characters fetch them again and update the list.</p>
<code><span class="keyword">fun </span><span class="identifier">refreshLoadedCharactersList</span><span class="symbol">(</span><span class="symbol">)</span><span class="symbol">: </span><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html"><span class="identifier">Unit</span></a></code></td>
</tr>
<tr>
<td>
<h4><a href="retry-add-characters-list.html">retryAddCharactersList</a></h4>
</td>
<td>
<p>Retry last fetch operation to add characters into list.</p>
<code><span class="keyword">fun </span><span class="identifier">retryAddCharactersList</span><span class="symbol">(</span><span class="symbol">)</span><span class="symbol">: </span><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html"><span class="identifier">Unit</span></a></code></td>
</tr>
</tbody>
</table>
</BODY>
</HTML>
